<?php
class Form_Order extends Apps_Form {
    public function init() {
        $pId = new Zend_Form_Element_Hidden('id');

        $fullName = new Zend_Form_Element_Text(
                'full_name',
                array('required' => true,
                      'class'    => 'input-required'));

        $email = new Zend_Form_Element_Text(
                'email',
                array('required' => true,
                      'validators' => array('emailAddress')));

        $phone = new Zend_Form_Element_Text('phone');
        $phone->setRequired(true);

        $address = new Zend_Form_Element_Text('address');

        $message = new Zend_Form_Element_Textarea(
                'message',
                array('attribs'  => array('style' => 'height:50px;width:280px')));

        $this->addElements(array($pId, $fullName, $email, $phone, $address, $message));
        $this->makeup();
    }
}